package com.ruoyi.qualityManagement.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 来料检管理对象 incoming_inspection
 * 
 * @author admin
 * @date 2024-07-05
 */
public class IncomingInspection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 来料检记录ID */
    private Long inspectionId;

    /** 质检任务号 */
    @Excel(name = "质检任务号")
    private String qualityInspectionNumber;

    /** 物料编号 */
    @Excel(name = "物料编号")
    private String materialNumber;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 检验数量 */
    @Excel(name = "检验数量")
    private BigDecimal inspectionQuantity;

    /** 检验结果 */
    @Excel(name = "检验结果")
    private String testResult;

    /** 处理方式 */
    @Excel(name = "处理方式")
    private String processingMode;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long quantityReturned;

    /** 检验完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionCompletionTime;

    /** 校验员 */
    @Excel(name = "校验员")
    private String verifier;

    /** 来源单号 */
    @Excel(name = "来源单号")
    private String sourceOrderNumber;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    private String lastUpdater;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateTime;

    public void setInspectionId(Long inspectionId) 
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId() 
    {
        return inspectionId;
    }
    public void setQualityInspectionNumber(String qualityInspectionNumber) 
    {
        this.qualityInspectionNumber = qualityInspectionNumber;
    }

    public String getQualityInspectionNumber() 
    {
        return qualityInspectionNumber;
    }
    public void setMaterialNumber(String materialNumber) 
    {
        this.materialNumber = materialNumber;
    }

    public String getMaterialNumber() 
    {
        return materialNumber;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setInspectionQuantity(BigDecimal inspectionQuantity) 
    {
        this.inspectionQuantity = inspectionQuantity;
    }

    public BigDecimal getInspectionQuantity() 
    {
        return inspectionQuantity;
    }
    public void setTestResult(String testResult) 
    {
        this.testResult = testResult;
    }

    public String getTestResult() 
    {
        return testResult;
    }
    public void setProcessingMode(String processingMode) 
    {
        this.processingMode = processingMode;
    }

    public String getProcessingMode() 
    {
        return processingMode;
    }
    public void setQuantityReturned(Long quantityReturned) 
    {
        this.quantityReturned = quantityReturned;
    }

    public Long getQuantityReturned() 
    {
        return quantityReturned;
    }
    public void setInspectionCompletionTime(Date inspectionCompletionTime) 
    {
        this.inspectionCompletionTime = inspectionCompletionTime;
    }

    public Date getInspectionCompletionTime() 
    {
        return inspectionCompletionTime;
    }
    public void setVerifier(String verifier) 
    {
        this.verifier = verifier;
    }

    public String getVerifier() 
    {
        return verifier;
    }
    public void setSourceOrderNumber(String sourceOrderNumber) 
    {
        this.sourceOrderNumber = sourceOrderNumber;
    }

    public String getSourceOrderNumber() 
    {
        return sourceOrderNumber;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setLastUpdater(String lastUpdater) 
    {
        this.lastUpdater = lastUpdater;
    }

    public String getLastUpdater() 
    {
        return lastUpdater;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inspectionId", getInspectionId())
            .append("qualityInspectionNumber", getQualityInspectionNumber())
            .append("materialNumber", getMaterialNumber())
            .append("materialName", getMaterialName())
            .append("state", getState())
            .append("inspectionQuantity", getInspectionQuantity())
            .append("testResult", getTestResult())
            .append("processingMode", getProcessingMode())
            .append("quantityReturned", getQuantityReturned())
            .append("inspectionCompletionTime", getInspectionCompletionTime())
            .append("verifier", getVerifier())
            .append("sourceOrderNumber", getSourceOrderNumber())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("lastUpdater", getLastUpdater())
            .append("lastUpdateTime", getLastUpdateTime())
            .toString();
    }
}
